<template>
  <div class="songerindex" v-if="songermsg.artist">
    <div
      class="head"
    >
    <div class="mark" :style="`background: url(&quot;${songermsg.artist.cover}&quot;) no-repeat center/cover;`">

    </div>
      <div class="font">
        <h1 class="name">{{ songermsg.artist.name }}</h1>
        <p class="rank" v-if="songermsg.artist.rank">歌手榜华语地区 No.{{ songermsg.artist.rank.rank }}</p>
        <span class="nickname" v-if="songermsg.user">昵称: {{ songermsg.user.nickname}}</span>
        <p class="fans">
          <span v-if="songermsg.user">关注 {{ songermsg.user.authenticationTypes }} | </span>粉丝
          234.5万
        </p>
        <p class="tag" v-if="songermsg.artist.identifyTag">
          {{ songermsg.artist.identifyTag[0] }}
        </p>
        <span
            class="tags"
            v-for="(item, index) in songermsg.artist.identities"
            :key="index"
            >{{ item }}</span
          >
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    songermsg: Object,
  },
  created: function () {
    this.axios.get("https://apis.netstart.cn/music/search/hot").then((res) => {
      this.dataList = res.data.result;
    });
  },
};
</script>

<style lang="less" scoped>
.songerindex {
  .head {
    height: 311px;
    width: 100%;
    padding: 16px;
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 0;
    .mark{
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      filter: blur(0px) brightness(0.7);
      z-index: -1;
    }
    .font {
      width: 178px;
      height: 125.5px;
      display: flex;
      flex-wrap: wrap;
      align-content: space-between;
      .name {
        font-size: 20px;
        width: 100%;
      }
      .rank {
        font-size: 13px;
      }
      .nickname {
        font-size: 12px;
        color: #d7d7d7;
      }
      .fans {
        font-size: 13px;
        color: #c5c5c5;
        width: 100%;
      }
      .tag {
        font-size: 13px;
        color: #fff;
      }
      .tags {
          border: 1px solid #d7d7d7;
          font-size: 12px;
          margin: 3px;
          border-radius: 4px;
          color: #d7d7d7;
        }
    }
  }
}
</style>